Ext.define('Intranet.LienKet.view.mini.ExtLinkView', {
    extend: 'Ext.view.View',
    alias: 'widget.mini_extlink',
    
    itemSelector: '.ext-link div.item',
    
    border: false,
    
    tpl: [
            '<ul class="ext-link">',
                '<tpl for=".">',
                    '<li class="item">',
                        '<div class="img"><img src="app/modules/LienKet/images/icons/{icon}" /></div>',
                        '<span>{link}</span>',
                    '</li>',
                '</tpl>',
            '</ul>'
    ],
    
    initComponent: function()
    {
        this.store = Ext.create('Ext.data.Store', {
            autoLoad: true,
            fields: ['icon', 'link', 'key'], 
                
            data: [
                {icon: 'book32.png', link: 'Danh sach so dien thoai', key:'phone_book'},
                {icon: 'home32.png', link: 'Dat phong hop', key:'book_room'},
                {icon: 'car32.png', link: 'Dat xe', key:'book_car'},
                {icon: 'bookshare32.png', link: 'Chia se tai lieu', key:'book_share'}
            ]
        });
        
        this.callParent(arguments);
        this.store.sort();

        
    }
});
